<?php

?>
<div class="rbac-select" style="border: 3px solid ghostwhite;width: 50%;padding: 20px;float: right">
    <h4>创建角色</h4>
    <div style="margin:20px;">
        <form class="form-horizontal" role="form">
            <div class="form-group">
                <label for="name" class="col-sm-2 control-label">菜单名称</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="name"
                           placeholder="菜单名称">
                </div>
            </div>
            <div class="form-group">
                <label for="url" class="col-sm-2 control-label">链接地址</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="url"
                           placeholder="链接地址">
                </div>
            </div>
            <div class="form-group">
                <label for="icon_char" class="col-sm-2 control-label">菜单图标</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="icon_char"
                           placeholder="菜单图标">
                </div>
            </div>
            <!--                <div class="form-group">-->

            <!--                </div>-->
        </form>
        <div class="col-sm-offset-2 col-sm-10">
            <a id="addMenu" onclick="javascript:addMenu()" class="btn btn-default">生成菜单</a>
        </div>
    </div>
</div>

<input type="hidden" name="_csrf" id='csrf' value="<?= Yii::$app->request->csrfToken ?>">
<button class="btn btn-success" onclick="javascript:postTo()">提交</button>

